import Vue from 'vue';
import VueRouter from 'vue-router';
import Login from "../views/Login.vue"
Vue.use(VueRouter);

const routes = [
  //登录路由
  {
    path : "/login",
    name : "login",
    component : Login
  },
  //主页路由
  {
    path : "/",
    name : "home",
    component : ()=> import("../components/Home.vue")
  }
];

const router = new VueRouter({
  routes,
});

export default router;
